home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 1.iso / dist / fw_exmh.idb / usr / freeware / lib / exmh-2.5 / xns.tcl.z / xns.tcl
Text File  |  2002-07-08  |  950b  |  31 lines

  1. # xns.tcl
  2. #
  3. # Thin layer over xnsgetmail routine that fetching messages from
  4. # an XNS mail server to your UNIX spool file.  An expect script is
  5. # used to check if you need to login or not..
  6. #
  7. # Copyright (c) 1994 Xerox Corporation.
  8. # Use and copying of this software and preparation of derivative works based
  9. # upon this software are permitted. Any distribution of this software or
  10. # derivative works must comply with all applicable United States export
  11. # control laws. This software is made available AS IS, and Xerox Corporation
  12. # makes no warranty about the software, its performance or its conformity to
  13. # any specification.
  14.  
  15. proc Xns_GetMail {} {
  16.     global exmh
  17.     Exmh_Status "xnsgetmail -k"
  18.     if [catch {exec $exmh(expect) -f $exmh(library)/xnsgetmail.exp} err] {
  19.     if [regexp {XNS username} $err] {
  20.         Exmh_Status "Please XNS login"
  21.         exec xterm -e xnslogin
  22.         after 1000 Xns_GetMail
  23.     } else {
  24.         Exmh_Status $err
  25.     }
  26.     }
  27.  
  28. }
  29.  
  30.